<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!-- saved from url=(0038)https://segmentfault.com/user/settings -->
<html lang="zh-CN">
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
        <meta name="renderer" content="webkit">
        <meta property="qc:admins" content="15317273575564615446375">
        <meta property="og:image" content="https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/touch-icon.png">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <meta name="alexaVerifyID" content="LkzCRJ7rPEUwt6fVey2vhxiw1vQ">
        <meta name="apple-itunes-app" content="app-id=958101793, app-argument=">
        <title>
            ！账号设置 - SegmentFault
        </title>
        <meta name="description" content="SegmentFault ( www.sf.gg ) 是中国领先的开发者技术社区。 我们希望为编程爱好者提供一个纯粹、高质的技术交流的平台， 与开发者一起学习、交流与成长，创造属于开发者的时代！">
        <meta name="keywords" content="SegmentFault,黑客马拉松,IT技术社区,编程社区,技术问答,技术文章,技术笔记,技术活动,程序员招聘,开发者,程序员,极客,编程,代码,开源,hackathon">
        <link rel="search" type="application/opensearchdescription+xml" href="https://segmentfault.com/opensearch.xml"
        title="SegmentFault">
        <!-- <link rel="shortcut icon" href="https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/favicon.ico"> -->
        <link rel="apple-touch-icon" href="https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/touch-icon.png">
        <meta name="msapplication-TileColor" content="#009a61">
        <meta name="msapplication-square150x150logo" content="https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/touch-icon.png">
        <meta name="userId" value="1030000005735727" id="SFUserId">
        <meta name="userRank" value="0" id="SFUserRank">
        <link rel="alternate" type="application/atom+xml" title="SegmentFault 最新问题"
        href="https://segmentfault.com/feeds/questions">
        <link rel="alternate" type="application/atom+xml" title="SegmentFault 最新文章"
        href="https://segmentfault.com/feeds/blogs">
        <link rel="stylesheet" href="/ztqphp/bbs/Public/css/global.css">
        <link rel="stylesheet" href="/ztqphp/bbs/Public/css/user.css">
        <link rel="stylesheet" href="/ztqphp/bbs/Public/css/responsive.css">
        <!--[if lt IE 9]>
            <link rel="stylesheet" href="https://sf-static.b0.upaiyun.com/v-576b52d9/global/css/ie.css"
            />
            <script src="https://sf-static.b0.upaiyun.com/v-576b52d9/global/script/html5shiv.js">
            </script>
            <script src="https://sf-static.b0.upaiyun.com/v-576b52d9/global/script/respond.js">
            </script>
        <![endif]-->
    </head>


    
    <body data-mod="user" class="user-settings
    ">
        <!--[if lt IE 9]>
            <div class="alert alert-danger topframe" role="alert">
                你的浏览器实在
                <strong>
                    太太太太太太旧了
                </strong>
                ，放学别走，升级完浏览器再说
                <a target="_blank" class="alert-link" href="http://browsehappy.com">
                    立即升级
                </a>
            </div>
        <![endif]-->
        <img id="icon4weChat" style="height: 0;width: 0;" data-src="https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/touch-icon-512.png">
        <img id="icon4weChat" data-src="https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/touch-icon-512.png">
        <div class="global-nav sf-header">
            <nav class="container nav">
                <div class="hidden-sm hidden-lg hidden-md">
                    <div class="sf-header__logo sf-header__logo--response">
                        <h1>
                            <a>
                            </a>
                        </h1>
                    </div>
                    <div class="dropdown m-menu">
                        <a href="javascript:void(0);" id="dLabel" class="visible-xs-block m-toptools"
                        data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <span class="glyphicon glyphicon-align-justify">
                            </span>
                            <span class="mobile-menu__unreadpoint">
                            </span>
                        </a>
                        <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/questions/newest">
                                    问答
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/blogs">
                                    文章
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/user/note">
                                    笔记
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/jobs">
                                    职位
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/events">
                                    活动
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/tags">
                                    标签
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/users">
                                    榜单
                                </a>
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/sites">
                                    子站
                                </a>
                            </li>
                            <li role="presentation" class="divider">
                            </li>
                            <li class="mobile-menu__item">
                                <a href="https://segmentfault.com/user/notifications">
                                    消息
                                    <span class="pull-right badge mt4" id="m-messageCount">
                                        1
                                    </span>
                                </a>
                            </li>
                            <li role="presentation" class="divider">
                            </li>
                            <li class="mobile-menu__item">
                                <a href="<?php echo U('index/login/loginout');?>">
                                    退出
                                </a>
                            </li>
                        </ul>
                    </div>
                    <a href="https://segmentfault.com/ask" class="visible-xs-block pull-right m-ask m-toptools">
                        <span class="glyphicon glyphicon-pencil">
                        </span>
                    </a>
                </div>
                <div class="row hidden-xs">
                    <div class="col-sm-9 col-md-7 col-lg-6">
                        <div class="sf-header__logo">
                            <h1>
                                <a href="/ztqphp/bbs">
                                    SegmentFault
                                </a>
                            </h1>
                        </div>
                    </div>
                    <div class="col-sm-3 col-md-5 col-lg-6 text-right">
                        

                        <?php if(isset($_SESSION['username'])){ ?>
                            <ul class="opts list-inline hidden-xs">
                                <li class="opts__item dropdown hoverDropdown write-btns">
                                    <a class="dropdownBtn" data-toggle="dropdown" href="https://segmentfault.com/ask">
                                        撰写
                                        <span class="caret">
                                        </span>
                                    </a>
                                    <ul class="dropdown-menu dropdown-menu-right ">
                                        <li>
                                            <a href="<?php echo U('index/ask/howtoask');?>">
                                                提问题
                                            </a>
                                        </li>
                                        <li>
                                            <a href="https://segmentfault.com/write">
                                                写文章
                                            </a>
                                        </li>
                                        <li>
                                            <a href="https://segmentfault.com/record">
                                                记笔记
                                            </a>
                                        </li>
                                        <li class="divider">
                                        </li>
                                        <li>
                                            <a href="https://segmentfault.com/user/draft">
                                                草稿箱  <?php echo $db; ?>
                                            </a>
                                        </li>
                                    </ul>
                                </li>
                                <li class="opts__item message has-unread ">
                                    <a id="dLabel" class="dropdown-toggle-message" href="javascript:;">
                                        <span class="sr-only">
                                            消 <?php echo $db; ?>息
                                        </span>
                                        <span id="messageCount" class="fa fa-bell-o">
                                        </span>
                                        <span class="has-unread__count">
                                            1
                                        </span>
                                    </a>
                                    <div class="opts__item--message hide">
                                        <div class="panel panel-default">
                                            <div class="panel-heading">
                                                <ul class="nav nav-tabs nav-tabs-message">
                                                    <li role="presentation" class="active">
                                                        <a href="https://segmentfault.com/user/settings#messageGeneral" id="home-tab"
                                                        role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">
                                                            <i class="fa fa-bullhorn">
                                                            </i>
                                                            <span class="notice-dot hide notice-dot-general">
                                                            </span>
                                                        </a>
                                                    </li>
                                                    <li role="presentation" class="">
                                                        <a href="https://segmentfault.com/user/settings#messageRanked" id="home-tab"
                                                        role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">
                                                            <i class="fa fa-thumbs-o-up">
                                                            </i>
                                                            <span class="notice-dot hide notice-dot-ranked">
                                                            </span>
                                                        </a>
                                                    </li>
                                                    <li role="presentation" class="">
                                                        <a href="https://segmentfault.com/user/settings#messageFollowed" id="home-tab"
                                                        role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">
                                                            <i class="fa fa-user-plus">
                                                            </i>
                                                            <span class="notice-dot hide notice-dot-followed">
                                                            </span>
                                                        </a>
                                                    </li>
                                                    <li role="presentation" class="">
                                                        <a href="https://segmentfault.com/user/settings#messageInbox" id="home-tab"
                                                        role="tab" data-toggle="tab" aria-controls="home" aria-expanded="true">
                                                            <i class="fa fa-commenting">
                                                            </i>
                                                            <span class="notice-dot hide notice-dot-inbox">
                                                            </span>
                                                        </a>
                                                    </li>
                                                </ul>
                                            </div>
                                            <div class="panel-body">
                                                <div class="tab-content">
                                                    <div role="tabpanel" class="tab-pane active" id="messageGeneral">
                                                    </div>
                                                    <div role="tabpanel" class="tab-pane" id="messageRanked">
                                                    </div>
                                                    <div role="tabpanel" class="tab-pane" id="messageFollowed">
                                                    </div>
                                                    <div role="tabpanel" class="tab-pane" id="messageInbox">
                                                    </div>
                                                    <script type="text/template" id="messageGeneralTpl">
                                                        < ul class = "mCustomScrollbar-message"data - proto = "general"data - mcs - theme = "minimal-dark" > <%_.each(general,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <%=d.sentence % >&nbsp; < a href = "<%= d.url %>" > <%=d.excerpt % ></a></li > <%
                                                        }) % ></ul>/
                                                    </script>
                                                    <script type="text/template" id="item--general">
                                                        < %_.each(general,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <%=d.sentence % >&nbsp; < a href = "<%= d.url %>" > <%=d.excerpt % ></a></li > <%
                                                        }) % >
                                                    </script>
                                                    <script type="text/template" id="messageRankedTpl">
                                                        < ul class = "mCustomScrollbar-message"data - proto = "ranked"data - mcs - theme = "minimal-dark" > <%_.each(ranked,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <span class = "badge
                                                        <% if(d.voted && d.voted.rank!=0){ %><%= d.voted.rank > 0 ? 'green':'red' %><% } else { %> transparent <% } %>" > <%
                                                            if (d.voted) { % ><%=d.voted.rank > 0 ? '+' + d.voted.rank: d.voted.rank % ><%
                                                            } % ></span><div class="rank-desc"><%= d.sentence %>&nbsp;<a href="<%= d.url %>"><%=
                                        d.excerpt %></a > </div></li > <%
                                                        }) % ></ul>/
                                                    </script>
                                                    <script type="text/template" id="item--ranked">
                                                        < %_.each(ranked,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <span class = "badge
                                                        <% if(d.voted && d.voted.rank!=0){ %><%= d.voted.rank > 0 ? 'green':'red' %><% } else { %> transparent <% } %>" > <%
                                                            if (d.voted) { % ><%=d.voted.rank > 0 ? '+' + d.voted.rank: d.voted.rank % ><%
                                                            } % ></span><div class="rank-desc"><%= d.sentence %>&nbsp;<a href="<%= d.url %>"><%=
                                        d.excerpt %></a > </div></li > <%
                                                        }) % >
                                                    </script>
                                                    <script type="text/template" id="messageFollowedTpl">
                                                        < p class = "follow-tips" > 他们最近关注了你 < /p><ul class="mCustomScrollbar-message" data-proto="followed"  data-mcs-theme="minimal-dark"><% _.each(followed,function(d){ %><li class="<%= d.viewed>0 ?'':'bg-warning'%>"><img class="follower__img avatar-32"
                                     src="<%= d.triggerUser[0] ? d.triggerUser[0].avatarUrl : '' %>"><div class="follower__info"><% if(d.triggerUser[0] ? d.triggerUser[0].isFollowed : ''){ %><button data-id="<%= d.triggerUser[0] ? d.triggerUser[0].id : '' %>"
                                            class="btn btn-default btn-xs message__btn--unfollow pull-right active">
                                        已关注
                                    </button > <%
                                                    } else { % ><button data - id = "<%= d.triggerUser[0] ? d.triggerUser[0].id : '' %>"class = "btn btn-default btn-xs message__btn--follow pull-right" > 关注 < /button><% } %><a href="<%= d.triggerUser[0] ? d.triggerUser[0].url : '' %>"><%=d.triggerUser[0] ? d.triggerUser[0].name : ''%></a > <br > <span > <%=d.triggerUser[0] ? d.triggerUser[0].rank: '' % >声望 < /span></div > </li><% }) %></ul > 
                                                    </script>
                                                    <script type="text/template" id="item--followed">
                                                        < %_.each(followed,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>" > <img class = "follower__img avatar-32"src = "<%= d.triggerUser[0] ? d.triggerUser[0].avatarUrl : '' %>" > <div class = "follower__info" > <%
                                                            if (d.triggerUser[0] && d.triggerUser[0].isFollowed) { % ><button data - id = "<%= d.triggerUser[0] ? d.triggerUser[0].id : '' %>"class = "btn btn-default btn-xs message__btn--unfollow pull-right active" > 已关注 < /button><% }else{ %><button data-id="<%= d.triggerUser[0] ? d.triggerUser[0].id : '' %>"
                                            class="btn btn-default btn-xs message__btn--follow pull-right">
                                        关注
                                    </button > <%
                                                            } % ><a href = "<%= d.triggerUser[0] ? d.triggerUser[0].url : '' %>" > <%=d.triggerUser[0].name % ></a><br><span><%= d.triggerUser[0].rank %> 声望</span > </div></li > <%
                                                        }) % >
                                                    </script>
                                                    <script type="text/template" id="messageInboxTpl">
                                                        < p class = "follow-tips" > 他们给你发了私信 < /p><ul class="mCustomScrollbar-message" data-proto="inbox" data-mcs-theme="minimal-dark"><% _.each(inboxes,function(d){ %><li class="<%= d.viewed>0 ?'':'bg-warning'%>" data-click="<%= d.url %>"><img class="follower__img avatar-32"
                                         src="<%= d.targetUser.avatarUrl %>"><div class="follower__info"><a href="<%= d.url %>"><%= d.targetUser.name
                                            %></a > <br > <span class = "ellipsis inline-block"style = "width: 245px;" > <%=d.lastMessage.content.content % ></span></div > </li><% }) %><% if(inboxes.length ==0){ %><p class="text-center">没有人给你发私信</p > <%
                                                    } % ></ul>/
                                                    </script>
                                                    <script type="text/template" id="item--inboxes">
                                                        < %_.each(inboxes,
                                                        function(d) { % ><li class = "<%= d.viewed>0 ?'':'bg-warning'%>"data - click = "<%= d.url %>" > <img class = "follower__img avatar-32"src = "<%= d.targetUser.avatarUrl %>" > <div class = "follower__info" > <a href = "<%= d.targetUser.url %>" > <%=d.targetUser.name % ></a><br><span class="ellipsis inline-block" style="width: 245px;"><%= d.content %></span > </div></li > <%
                                                        }) % >
                                                    </script>
                                                </div>
                                                <p class="opts__item--message-loading follow-tips">
                                                    loading
                                                </p>
                                            </div>
                                            <div class="panel-footer">
                                                <div class="row">
                                                    <div class="col-sm-6">
                                                        <a href="javascript:;" class="message-ingore-all hide">
                                                            <span class="glyphicon glyphicon-ok-sign">
                                                            </span>
                                                            全部标记为已读
                                                        </a>
                                                    </div>
                                                    <div class="col-sm-6">
                                                        <a class="opts__item--message-view-all" href="https://segmentfault.com/user/notifications">
                                                            查看全部 »
                                                        </a>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </li>
                                <li class="opts__item user dropdown hoverDropdown">
                                    <a class="dropdownBtn user-avatar" data-toggle="dropdown" style="background-image: url(<?php if(isset($_SESSION['face'])){ echo '/ztqphp/bbs'.$_SESSION['face']; }else{ echo '/ztqphp/bbs/Public/images/face.png'; } ?>)"
                                    href="https://segmentfault.com/u/xuebingsiabin">
                                    </a>
                                    <ul class="dropdown-menu dropdown-menu-right">
                                        <li>
                                            <a href="https://segmentfault.com/u/xuebingsiabin">
                                                我的主页
                                            </a>
                                        </li>
                                        <li>
                                            <a href="https://segmentfault.com/u/xuebingsiabin/profile">
                                                我的档案
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?php echo U('Index/settings/index');?>">
                                                账号设置
                                            </a>
                                        </li>
                                        <li>
                                            <a href="<?php echo U('index/login/loginout');?>">
                                                退出
                                            </a>
                                        </li>
                                        <li class="divider">
                                        </li>
                                        <li>
                                            <a href="https://board.segmentfault.com/">
                                                建议反馈
                                            </a>
                                        </li>
                                        <li>
                                            <a class="js__action--complain" href="javascript:void(0);">
                                                用户申诉
                                            </a>
                                        </li>
                                        <script type="text/template" id="js__action--complain-tpl">
                                            < form class = "complain__form"method = "post"action = "/api/appeals/add" > <div class = "form-group" > <label > 理由 < /label><textarea name="description" class="form-control"
                                                                  rows="3"></textarea > </div></form > 
                                        </script>
                                    </ul>
                                </li>
                            </ul>

                        <?php }else{ ?>
                            <ul class="opts list-inline hidden-xs">
                                <li class="opts__item message has-unread">
                                    <a target="_blank" href="/tour">
                                        <span class="sr-only">
                                            消息
                                        </span>
                                        <span id="messageCount" class="fa fa-hand-peace-o">
                                        </span>
                                    </a>
                                </li>
                                <li class="opts__item">
                                    <a href="<?php echo U('index/login/index');?>" class="SFLogin em ml10">注册</a>
                                    <a href="<?php echo U('index/login/index');?>" class="SFLogin em ml10">登录</a>
                                </li>
                            </ul>

                        <?php } ?>

                    </div>
                </div>
            </nav>
        </div>


<script type="text/javascript" src="/ztqphp/bbs/Public/js/jquery-2.0.2.js"></script>
<script type="text/javascript" src="/ztqphp/bbs/Public/ueditor/ueditor.config.js"></script>    
<script type="text/javascript" src="/ztqphp/bbs/Public/ueditor/ueditor.all.min.js"></script>
<script>
$(function(){
    var ue = UE.getEditor('container',{
        serverUrl :'<?php echo U('Index/ask/ueditor');?>'
    });
})
</script>



<div class="wrap publish">
    <div class="container">
        <form id="question" action="<?php echo U('index/ask/save');?>" method="POST" role="form">
            
            <div class="form-group">
                <label for="title" class="sr-only">
                    标题
                </label>
                <input id="myTitle" type="text" name="title" required="" data-error=""
                autocomplete="off" class="form-control tagClose input-lg" placeholder="标题：一句话说清问题，用问号结尾"
                value="">
            </div>
            <div id="titleSuggest" class="panel hidden widget-suggest panel-default">
                <div class="panel-body">
                    <p>
                        <strong>
                            这些问题可能有你需要的答案
                        </strong>
                        <button type="button" class="widget-suggest__close btn btn-default btn-xs">
                            关闭提示
                        </button>
                    </p>
                    <ul id="qList" class="list-unstyled widget-suggest__list">
                    </ul>
                </div>
            </div>
            <div class="form-group ">
                <label class="required">
                    分类
                </label>
                <select class="form-control" name="category[]" multiple="">
                    <?php foreach ($categorys as $key => $value) { ?>
                    <option value="<?php echo $value['id'] ?>"><?php echo $value['cname'] ?></option>
                       
                    <?php } ?>
                    
                </select>
            </div>
            <div id="questionText" class="editor liveMode">
                <div id="container"></div>
            </div>
            <a class="editor__resize" href="javascript:void(0);">
                调整高度
            </a>
            <div class=" publish-footer">
                <div class="container">
                    <div class="operations clearfix">
                        <div class="shareToWeibo checkbox pull-left mr10 mb0">
                            <label for="shareToWeibo">
                                <input type="checkbox" id="shareToWeibo">
                                同步到新浪微博
                            </label>
                        </div>
                        <div class="pull-right">
                            <span class="text-muted hidden" id="editorStatus">
                                已保存
                            </span>
                            <a id="dropIt" href="javascript:void(0);" class="mr10 hidden">
                                [舍弃]
                            </a>
                            <button type="submit" data-type="question" id="publishIt" class="btn btn-primary ml10"
                            data-id="" data-do="" data-url="" data-text="发布问题" data-name="">
                                发布问题
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <!-- /.container -->
</div>

    

        <script crossorigin="" src="/ztqphp/bbs/Public/js/assets.js">
        </script>
        <script crossorigin="" src="/ztqphp/bbs/Public/js/settings.min.js">
        </script>

    </body>

</html>